//
//  DJProgramRoot.m
//  __PRODUCTNAME__
//
//  Created by 曹曹 on 16/09/08
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DJProgramRoot.h"
#import "DJProgramRecords.h"

@implementation DJProgramRoot

+ (NSDictionary *)objectClassInArray{
    return @{@"records" : [DJProgramRecords class]};
}

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"records"]) {
        _records = [self arrayWithClass:[DJProgramRecords class] value:value];
    }
}

@end
